package com.xrs.xrseducation.coupon.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 优惠表
 * </p>
 *
 * @author jobob
 * @since 2020-09-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Coupon implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "couId", type = IdType.AUTO)
    private Integer couId;

    /**
     * 优惠兑换码
     */
    @TableField("couName")
    private String couName;

    /**
     * 使用条件
     */
    @TableField("couEmploy")
    private String couEmploy;

    /**
     * 优惠金额
     */
    @TableField("couMoney")
    private Integer couMoney;

    /**
     * 状态0未使用1已使用
     */
    @TableField("couState")
    private Integer couState;

    /**
     * 生效时间
     */
    @TableField("addTime")
    private String addTime;

    /**
     * 失效时间
     */
    @TableField("deleteTime")
    private String deleteTime;

    /**
     * 创建时间
     */
    @TableField("foundTime")
    private String foundTime;

    /**
     * 修改时间
     */
    @TableField("updateTime")
    private String updateTime;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getCouId() {
        return couId;
    }

    public void setCouId(Integer couId) {
        this.couId = couId;
    }

    public String getCouName() {
        return couName;
    }

    public void setCouName(String couName) {
        this.couName = couName;
    }

    public String getCouEmploy() {
        return couEmploy;
    }

    public void setCouEmploy(String couEmploy) {
        this.couEmploy = couEmploy;
    }

    public Integer getCouMoney() {
        return couMoney;
    }

    public void setCouMoney(Integer couMoney) {
        this.couMoney = couMoney;
    }

    public Integer getCouState() {
        return couState;
    }

    public void setCouState(Integer couState) {
        this.couState = couState;
    }

    public String getAddTime() {
        return addTime;
    }

    public void setAddTime(String addTime) {
        this.addTime = addTime;
    }

    public String getDeleteTime() {
        return deleteTime;
    }

    public void setDeleteTime(String deleteTime) {
        this.deleteTime = deleteTime;
    }

    public String getFoundTime() {
        return foundTime;
    }

    public void setFoundTime(String foundTime) {
        this.foundTime = foundTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Coupon{" +
                "couId=" + couId +
                ", couName='" + couName + '\'' +
                ", couEmploy='" + couEmploy + '\'' +
                ", couMoney=" + couMoney +
                ", couState=" + couState +
                ", addTime='" + addTime + '\'' +
                ", deleteTime='" + deleteTime + '\'' +
                ", foundTime='" + foundTime + '\'' +
                ", updateTime='" + updateTime + '\'' +
                '}';
    }
}
